<?php

class AddiAction extends Action {

		public function addi(){
			$addi = new Model('Cate');
			$cate = $addi->select();
			$this->assign('cate',$cate);
			$this->display();
		}
		public function insert(){
			$addi = new Model('Item');
			$addi->create();
			$addi->time = time();
			$addi->add();
			$this->redirect('addi');
		}
}
?>